package com.webchat.rmi.ugc.mall.im;


import com.webchat.common.bean.APIResponseBean;
import com.webchat.domain.vo.request.mall.CreateProductPaymentOrderReqVO;
import com.webchat.domain.vo.request.mall.PreCreateProductOrderReqVO;
import com.webchat.domain.vo.response.mall.MallUserProductOrderResponseVO;
import com.webchat.domain.vo.response.mall.im.MallChatListItemResponseVO;
import com.webchat.rmi.interceptor.RpcRequestInterceptor;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 声明用户对话消息基础服务 客户端
 */
@FeignClient(name = "webchat-ugc-service",
             contextId = "mallChatAccountClient",
             configuration = RpcRequestInterceptor.class)
public interface MallChatAccountClient {


    /**
     * 智能客服系统对话账号列表查询接口
     *
     * @return
     */
    @PostMapping("/ugc-service/mall/im/account/list")
    APIResponseBean<List<MallChatListItemResponseVO>> list(
            @RequestParam(value = "account", required = false) String account,
            @RequestParam(value = "chatAccount", required = false) String chatAccount,
            @RequestParam(value = "lastTime", required = false) Long lastTime,
            @RequestParam(value = "size", required = false, defaultValue = "10") int size);
}
